projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed40790
)
Make sure OptVals.quiet is always present (fixes xm shutdown -w).
author
Brendan Cully
<brendan@cs.ubc.ca>
Wed, 31 Jan 2007 19:05:36 +0000
(11:05 -0800)
committer
Brendan Cully
<brendan@cs.ubc.ca>
Wed, 31 Jan 2007 19:05:36 +0000
(11:05 -0800)
Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
tools/python/xen/xm/opts.py
patch
|
blob
|
history
diff --git
a/tools/python/xen/xm/opts.py
b/tools/python/xen/xm/opts.py
index 1b80ceeff8215bc2d6e3f301723f651136e65ae7..0c2566b7522524bee5f5f740704d2e12c5cc3437 100644
(file)
--- a/
tools/python/xen/xm/opts.py
+++ b/
tools/python/xen/xm/opts.py
@@
-250,7
+250,8
@@
class OptVar(Opt):
class OptVals:
"""Class to hold option values.
"""
- pass
+ def __init__(self):
+ self.quiet = False
class Opts:
"""Container for options.
@@
-276,7
+277,6
@@
class Opts:
self.argv = []
# Option values.
self.vals = OptVals()
- self.vals.quiet = 0
# Variables for default scripts.
self.vars = {}
# Option to use for bare words.